//
//  PinterestHeroImageView.swift
//  SwiftUILean
//
//  Created by wyknmjj on 2024/5/14.
//

import SwiftUI

struct PinterestHeroImageView: View {
    var post:PinterestItem
    var body: some View {
        GeometryReader{
            let size = $0.size
            if let image = post.image {
                Image(uiImage: image)
                    .resizable()
                    .aspectRatio(contentMode: .fit)
                    .frame(width: size.width,height: size.height,alignment: .top)
                    .clipped()
            }
        }
    }
}
